/**
 * 
 */
package edu.umd.clip.smoothing;

/**
 * @author Denis Filimonov <den@cs.umd.edu>
 *
 */
public class DummySmoother extends Smoother {
	private final double revTotalCount;

	public DummySmoother(SmootherProducer producer) {
		super(producer);
		revTotalCount = 1.0 / totalCount;
	}
	/* (non-Javadoc)
	 * @see edu.umd.clip.smoothing.Smoother#getBackoffProb()
	 */
	public double getBackoffProb() {
		return 0;
	}

	/* (non-Javadoc)
	 * @see edu.umd.clip.smoothing.Smoother#getProb(long)
	 */
	public double getProb(long count) {
		if (count <= minCount) return 0.0; 
		return count * revTotalCount;
	}
}
